#ifndef SCALE_DIALOG_H
#define SCALE_DIALOG_H

#include <QDialog>
#include <QtGui>
#include "objectTreeItem.h"

class ScaleDialog : public QDialog{
    Q_OBJECT

    public:
        ScaleDialog(QList<QTreeWidgetItem *>, QWidget * = 0);
        ~ScaleDialog();

    signals:
        void done();

    private:
        QList<QTreeWidgetItem *> list;
        double scaleX, scaleY, scaleZ, relativePositionX, relativePositionY, relativePositionZ;
        bool useRelativePosition;

    private slots:
        void acceptAndCreate();
        void changeScaleX(double);
        void changeScaleY(double);
        void changeScaleZ(double);
        void changeRelativePositionX(double);
        void changeRelativePositionY(double);
        void changeRelativePositionZ(double);
        void changeUseRelativePosition(bool);
};

#endif
